def demo(num):
    if num == 1:
        return 1
    temp = demo(num - 1)
    return num + temp
# 4 + demo(3)
# demo(3) = demo(2) + 3
# demo(2) = demo(1) + 2
# demo(1) = 1



print(demo(4))
